import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import './style/style.scss';
import 'normalize-css';

import Axios from 'axios'
Vue.prototype.$axios = Axios
Axios.defaults.baseURL = '/'

Vue.config.productionTip = false;

import dataV from '@jiaminghi/data-view';
Vue.use(dataV)

import 'echarts-gl';
import * as echarts from 'echarts';
Vue.prototype.$echarts = echarts;

Vue.prototype.$TMap = window.TMap;

import './components/global';
import CountTo from 'vue-count-to';
Vue.component('CountTo', CountTo);

import * as filters from './filter/'
Object.keys(filters).forEach(key=>{
  Vue.filter(key,filters[key])//插入过滤器名和对应方法
});


new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');
